/**
 * Created by Administrator on 2019/06/06.
 */
class Rectangle(private val width : Double, private val height : Double) :
        Shape(listOf(width, height)) ,RectangleProperties {

    override val isSquare: Boolean get() = width == height;

    override fun calculateArea(): Double = width * height;

    val firstProperty = "First Property : $width".also (::println)

    init {
        println("First init properties block that println $width")
    }
}